/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
"use strict";

var $protobuf = require("protobufjs/minimal");

// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;

// Exported root namespace
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});

$root.MesActivity = (function() {

    /**
     * Properties of a MesActivity.
     * @exports IMesActivity
     * @interface IMesActivity
     * @property {string|null} [uuid] MesActivity uuid
     * @property {string|null} [upper] MesActivity upper
     * @property {string|null} [validFlag] MesActivity validFlag
     * @property {string|null} [creator] MesActivity creator
     * @property {string|null} [createTime] MesActivity createTime
     * @property {string|null} [creatorIp] MesActivity creatorIp
     * @property {string|null} [lastModifier] MesActivity lastModifier
     * @property {string|null} [lastModifyTime] MesActivity lastModifyTime
     * @property {string|null} [lastModifierIp] MesActivity lastModifierIp
     * @property {string|null} [ownerOrganize] MesActivity ownerOrganize
     * @property {string|null} [ownerRole] MesActivity ownerRole
     * @property {string|null} [serNum] MesActivity serNum
     * @property {string|null} [serMemo] MesActivity serMemo
     * @property {string|null} [serAudit] MesActivity serAudit
     * @property {string|null} [serUsing] MesActivity serUsing
     * @property {string|null} [serLabels] MesActivity serLabels
     */

    /**
     * Constructs a new MesActivity.
     * @exports MesActivity
     * @classdesc Represents a MesActivity.
     * @implements IMesActivity
     * @constructor
     * @param {IMesActivity=} [properties] Properties to set
     */
    function MesActivity(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * MesActivity uuid.
     * @member {string} uuid
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.uuid = "";

    /**
     * MesActivity upper.
     * @member {string} upper
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.upper = "";

    /**
     * MesActivity validFlag.
     * @member {string} validFlag
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.validFlag = "";

    /**
     * MesActivity creator.
     * @member {string} creator
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.creator = "";

    /**
     * MesActivity createTime.
     * @member {string} createTime
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.createTime = "";

    /**
     * MesActivity creatorIp.
     * @member {string} creatorIp
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.creatorIp = "";

    /**
     * MesActivity lastModifier.
     * @member {string} lastModifier
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.lastModifier = "";

    /**
     * MesActivity lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.lastModifyTime = "";

    /**
     * MesActivity lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.lastModifierIp = "";

    /**
     * MesActivity ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.ownerOrganize = "";

    /**
     * MesActivity ownerRole.
     * @member {string} ownerRole
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.ownerRole = "";

    /**
     * MesActivity serNum.
     * @member {string} serNum
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.serNum = "";

    /**
     * MesActivity serMemo.
     * @member {string} serMemo
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.serMemo = "";

    /**
     * MesActivity serAudit.
     * @member {string} serAudit
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.serAudit = "";

    /**
     * MesActivity serUsing.
     * @member {string} serUsing
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.serUsing = "";

    /**
     * MesActivity serLabels.
     * @member {string} serLabels
     * @memberof MesActivity
     * @instance
     */
    MesActivity.prototype.serLabels = "";

    /**
     * Creates a new MesActivity instance using the specified properties.
     * @function create
     * @memberof MesActivity
     * @static
     * @param {IMesActivity=} [properties] Properties to set
     * @returns {MesActivity} MesActivity instance
     */
    MesActivity.create = function create(properties) {
        return new MesActivity(properties);
    };

    /**
     * Encodes the specified MesActivity message. Does not implicitly {@link MesActivity.verify|verify} messages.
     * @function encode
     * @memberof MesActivity
     * @static
     * @param {IMesActivity} message MesActivity message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    MesActivity.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        return writer;
    };

    /**
     * Encodes the specified MesActivity message, length delimited. Does not implicitly {@link MesActivity.verify|verify} messages.
     * @function encodeDelimited
     * @memberof MesActivity
     * @static
     * @param {IMesActivity} message MesActivity message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    MesActivity.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a MesActivity message from the specified reader or buffer.
     * @function decode
     * @memberof MesActivity
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {MesActivity} MesActivity
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    MesActivity.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.MesActivity();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.ownerOrganize = reader.string();
                break;
            case 11:
                message.ownerRole = reader.string();
                break;
            case 12:
                message.serNum = reader.string();
                break;
            case 13:
                message.serMemo = reader.string();
                break;
            case 14:
                message.serAudit = reader.string();
                break;
            case 15:
                message.serUsing = reader.string();
                break;
            case 16:
                message.serLabels = reader.string();
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a MesActivity message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof MesActivity
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {MesActivity} MesActivity
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    MesActivity.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a MesActivity message.
     * @function verify
     * @memberof MesActivity
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    MesActivity.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        return null;
    };

    /**
     * Creates a MesActivity message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof MesActivity
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {MesActivity} MesActivity
     */
    MesActivity.fromObject = function fromObject(object) {
        if (object instanceof $root.MesActivity)
            return object;
        var message = new $root.MesActivity();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        return message;
    };

    /**
     * Creates a plain object from a MesActivity message. Also converts values to other types if specified.
     * @function toObject
     * @memberof MesActivity
     * @static
     * @param {MesActivity} message MesActivity
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    MesActivity.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        return object;
    };

    /**
     * Converts this MesActivity to JSON.
     * @function toJSON
     * @memberof MesActivity
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    MesActivity.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return MesActivity;
})();

$root.MesActivityCondition = (function() {

    /**
     * Properties of a MesActivityCondition.
     * @exports IMesActivityCondition
     * @interface IMesActivityCondition
     * @property {string|null} [uuid] MesActivityCondition uuid
     * @property {string|null} [upper] MesActivityCondition upper
     * @property {string|null} [validFlag] MesActivityCondition validFlag
     * @property {string|null} [creator] MesActivityCondition creator
     * @property {string|null} [createTime] MesActivityCondition createTime
     * @property {string|null} [creatorIp] MesActivityCondition creatorIp
     * @property {string|null} [lastModifier] MesActivityCondition lastModifier
     * @property {string|null} [lastModifyTime] MesActivityCondition lastModifyTime
     * @property {string|null} [lastModifierIp] MesActivityCondition lastModifierIp
     * @property {string|null} [ownerOrganize] MesActivityCondition ownerOrganize
     * @property {string|null} [ownerRole] MesActivityCondition ownerRole
     * @property {string|null} [serNum] MesActivityCondition serNum
     * @property {string|null} [serMemo] MesActivityCondition serMemo
     * @property {string|null} [serAudit] MesActivityCondition serAudit
     * @property {string|null} [serUsing] MesActivityCondition serUsing
     * @property {string|null} [serLabels] MesActivityCondition serLabels
     * @property {Array.<string>|null} [uuidList] MesActivityCondition uuidList
     * @property {string|null} [createTimeOUTSET] MesActivityCondition createTimeOUTSET
     * @property {string|null} [createTimeFINISH] MesActivityCondition createTimeFINISH
     * @property {string|null} [lastModifyTimeOUTSET] MesActivityCondition lastModifyTimeOUTSET
     * @property {string|null} [lastModifyTimeFINISH] MesActivityCondition lastModifyTimeFINISH
     * @property {Array.<string>|null} [serAuditList] MesActivityCondition serAuditList
     */

    /**
     * Constructs a new MesActivityCondition.
     * @exports MesActivityCondition
     * @classdesc Represents a MesActivityCondition.
     * @implements IMesActivityCondition
     * @constructor
     * @param {IMesActivityCondition=} [properties] Properties to set
     */
    function MesActivityCondition(properties) {
        this.uuidList = [];
        this.serAuditList = [];
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * MesActivityCondition uuid.
     * @member {string} uuid
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.uuid = "";

    /**
     * MesActivityCondition upper.
     * @member {string} upper
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.upper = "";

    /**
     * MesActivityCondition validFlag.
     * @member {string} validFlag
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.validFlag = "";

    /**
     * MesActivityCondition creator.
     * @member {string} creator
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.creator = "";

    /**
     * MesActivityCondition createTime.
     * @member {string} createTime
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.createTime = "";

    /**
     * MesActivityCondition creatorIp.
     * @member {string} creatorIp
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.creatorIp = "";

    /**
     * MesActivityCondition lastModifier.
     * @member {string} lastModifier
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.lastModifier = "";

    /**
     * MesActivityCondition lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.lastModifyTime = "";

    /**
     * MesActivityCondition lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.lastModifierIp = "";

    /**
     * MesActivityCondition ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.ownerOrganize = "";

    /**
     * MesActivityCondition ownerRole.
     * @member {string} ownerRole
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.ownerRole = "";

    /**
     * MesActivityCondition serNum.
     * @member {string} serNum
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.serNum = "";

    /**
     * MesActivityCondition serMemo.
     * @member {string} serMemo
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.serMemo = "";

    /**
     * MesActivityCondition serAudit.
     * @member {string} serAudit
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.serAudit = "";

    /**
     * MesActivityCondition serUsing.
     * @member {string} serUsing
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.serUsing = "";

    /**
     * MesActivityCondition serLabels.
     * @member {string} serLabels
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.serLabels = "";

    /**
     * MesActivityCondition uuidList.
     * @member {Array.<string>} uuidList
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.uuidList = $util.emptyArray;

    /**
     * MesActivityCondition createTimeOUTSET.
     * @member {string} createTimeOUTSET
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.createTimeOUTSET = "";

    /**
     * MesActivityCondition createTimeFINISH.
     * @member {string} createTimeFINISH
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.createTimeFINISH = "";

    /**
     * MesActivityCondition lastModifyTimeOUTSET.
     * @member {string} lastModifyTimeOUTSET
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.lastModifyTimeOUTSET = "";

    /**
     * MesActivityCondition lastModifyTimeFINISH.
     * @member {string} lastModifyTimeFINISH
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.lastModifyTimeFINISH = "";

    /**
     * MesActivityCondition serAuditList.
     * @member {Array.<string>} serAuditList
     * @memberof MesActivityCondition
     * @instance
     */
    MesActivityCondition.prototype.serAuditList = $util.emptyArray;

    /**
     * Creates a new MesActivityCondition instance using the specified properties.
     * @function create
     * @memberof MesActivityCondition
     * @static
     * @param {IMesActivityCondition=} [properties] Properties to set
     * @returns {MesActivityCondition} MesActivityCondition instance
     */
    MesActivityCondition.create = function create(properties) {
        return new MesActivityCondition(properties);
    };

    /**
     * Encodes the specified MesActivityCondition message. Does not implicitly {@link MesActivityCondition.verify|verify} messages.
     * @function encode
     * @memberof MesActivityCondition
     * @static
     * @param {IMesActivityCondition} message MesActivityCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    MesActivityCondition.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.uuidList != null && message.uuidList.length)
            for (var i = 0; i < message.uuidList.length; ++i)
                writer.uint32(/* id 17, wireType 2 =*/138).string(message.uuidList[i]);
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.createTimeOUTSET);
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            writer.uint32(/* id 19, wireType 2 =*/154).string(message.createTimeFINISH);
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            writer.uint32(/* id 20, wireType 2 =*/162).string(message.lastModifyTimeOUTSET);
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            writer.uint32(/* id 21, wireType 2 =*/170).string(message.lastModifyTimeFINISH);
        if (message.serAuditList != null && message.serAuditList.length)
            for (var i = 0; i < message.serAuditList.length; ++i)
                writer.uint32(/* id 22, wireType 2 =*/178).string(message.serAuditList[i]);
        return writer;
    };

    /**
     * Encodes the specified MesActivityCondition message, length delimited. Does not implicitly {@link MesActivityCondition.verify|verify} messages.
     * @function encodeDelimited
     * @memberof MesActivityCondition
     * @static
     * @param {IMesActivityCondition} message MesActivityCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    MesActivityCondition.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a MesActivityCondition message from the specified reader or buffer.
     * @function decode
     * @memberof MesActivityCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {MesActivityCondition} MesActivityCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    MesActivityCondition.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.MesActivityCondition();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.ownerOrganize = reader.string();
                break;
            case 11:
                message.ownerRole = reader.string();
                break;
            case 12:
                message.serNum = reader.string();
                break;
            case 13:
                message.serMemo = reader.string();
                break;
            case 14:
                message.serAudit = reader.string();
                break;
            case 15:
                message.serUsing = reader.string();
                break;
            case 16:
                message.serLabels = reader.string();
                break;
            case 17:
                if (!(message.uuidList && message.uuidList.length))
                    message.uuidList = [];
                message.uuidList.push(reader.string());
                break;
            case 18:
                message.createTimeOUTSET = reader.string();
                break;
            case 19:
                message.createTimeFINISH = reader.string();
                break;
            case 20:
                message.lastModifyTimeOUTSET = reader.string();
                break;
            case 21:
                message.lastModifyTimeFINISH = reader.string();
                break;
            case 22:
                if (!(message.serAuditList && message.serAuditList.length))
                    message.serAuditList = [];
                message.serAuditList.push(reader.string());
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a MesActivityCondition message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof MesActivityCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {MesActivityCondition} MesActivityCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    MesActivityCondition.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a MesActivityCondition message.
     * @function verify
     * @memberof MesActivityCondition
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    MesActivityCondition.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.uuidList != null && message.hasOwnProperty("uuidList")) {
            if (!Array.isArray(message.uuidList))
                return "uuidList: array expected";
            for (var i = 0; i < message.uuidList.length; ++i)
                if (!$util.isString(message.uuidList[i]))
                    return "uuidList: string[] expected";
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            if (!$util.isString(message.createTimeOUTSET))
                return "createTimeOUTSET: string expected";
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            if (!$util.isString(message.createTimeFINISH))
                return "createTimeFINISH: string expected";
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            if (!$util.isString(message.lastModifyTimeOUTSET))
                return "lastModifyTimeOUTSET: string expected";
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            if (!$util.isString(message.lastModifyTimeFINISH))
                return "lastModifyTimeFINISH: string expected";
        if (message.serAuditList != null && message.hasOwnProperty("serAuditList")) {
            if (!Array.isArray(message.serAuditList))
                return "serAuditList: array expected";
            for (var i = 0; i < message.serAuditList.length; ++i)
                if (!$util.isString(message.serAuditList[i]))
                    return "serAuditList: string[] expected";
        }
        return null;
    };

    /**
     * Creates a MesActivityCondition message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof MesActivityCondition
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {MesActivityCondition} MesActivityCondition
     */
    MesActivityCondition.fromObject = function fromObject(object) {
        if (object instanceof $root.MesActivityCondition)
            return object;
        var message = new $root.MesActivityCondition();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.uuidList) {
            if (!Array.isArray(object.uuidList))
                throw TypeError(".MesActivityCondition.uuidList: array expected");
            message.uuidList = [];
            for (var i = 0; i < object.uuidList.length; ++i)
                message.uuidList[i] = String(object.uuidList[i]);
        }
        if (object.createTimeOUTSET != null)
            message.createTimeOUTSET = String(object.createTimeOUTSET);
        if (object.createTimeFINISH != null)
            message.createTimeFINISH = String(object.createTimeFINISH);
        if (object.lastModifyTimeOUTSET != null)
            message.lastModifyTimeOUTSET = String(object.lastModifyTimeOUTSET);
        if (object.lastModifyTimeFINISH != null)
            message.lastModifyTimeFINISH = String(object.lastModifyTimeFINISH);
        if (object.serAuditList) {
            if (!Array.isArray(object.serAuditList))
                throw TypeError(".MesActivityCondition.serAuditList: array expected");
            message.serAuditList = [];
            for (var i = 0; i < object.serAuditList.length; ++i)
                message.serAuditList[i] = String(object.serAuditList[i]);
        }
        return message;
    };

    /**
     * Creates a plain object from a MesActivityCondition message. Also converts values to other types if specified.
     * @function toObject
     * @memberof MesActivityCondition
     * @static
     * @param {MesActivityCondition} message MesActivityCondition
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    MesActivityCondition.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.arrays || options.defaults) {
            object.uuidList = [];
            object.serAuditList = [];
        }
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.createTimeOUTSET = "";
            object.createTimeFINISH = "";
            object.lastModifyTimeOUTSET = "";
            object.lastModifyTimeFINISH = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.uuidList && message.uuidList.length) {
            object.uuidList = [];
            for (var j = 0; j < message.uuidList.length; ++j)
                object.uuidList[j] = message.uuidList[j];
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            object.createTimeOUTSET = message.createTimeOUTSET;
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            object.createTimeFINISH = message.createTimeFINISH;
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            object.lastModifyTimeOUTSET = message.lastModifyTimeOUTSET;
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            object.lastModifyTimeFINISH = message.lastModifyTimeFINISH;
        if (message.serAuditList && message.serAuditList.length) {
            object.serAuditList = [];
            for (var j = 0; j < message.serAuditList.length; ++j)
                object.serAuditList[j] = message.serAuditList[j];
        }
        return object;
    };

    /**
     * Converts this MesActivityCondition to JSON.
     * @function toJSON
     * @memberof MesActivityCondition
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    MesActivityCondition.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return MesActivityCondition;
})();

module.exports = $root;
